package com.kalvan.commons.constant;

/**
 * 审核状态常量类
 * 正常情况下审核状态=null or "" 表示没有审核任务可以发起相关的审核操作
 */
public enum AuditState {
    PASS(0, "无审核"),
    REFUSE(1, "审核拒绝"),
    ADD(2, "新增待审"),
    UPDATE(3, "修改待审"),
    DELETE(4, "删除待审"),
    ;

    private int code;
    private String desc;

    AuditState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    @Override
    public String toString() {
        return this.desc;
    }

}
